package com.lxw.nonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 行政区域表
 * </p>
 *
 * @author lxw
 * @since 2025-05-09
 */
@Data
@Accessors(chain = true)
@TableName("t_administrative_region")
@ApiModel(value = "AdministrativeRegion对象", description = "行政区域表")
public class AdministrativeRegion implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("区域唯一ID")
    @TableId(type = IdType.AUTO)
    private Integer regionId;

    @ApiModelProperty("行政编码")
    private String regionCode;

    @ApiModelProperty("行政区域名称")
    private String regionName;

    @ApiModelProperty("级别(1-县,2-镇,3-村,4-组)")
    private Integer level;

    @ApiModelProperty("上级行政编码")
    private String parentCode;

    @ApiModelProperty("状态(1-启用,0-禁用)")
    private Byte status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
